package com.cherrypt.api.common.constant;

public class WebConst {
    public static final long SECOND = 1000;
    // 邮箱最大长度
    public static final int EMAIL_MAX_LEN = 256;
    // 用户名最小长度
    public static final int USERNAME_MIN_LEN = 6;
    // 用户名最大长度
    public static final int USERNAME_MAX_LEN = 32;
    // 密码最小长度
    public static final int PASSWORD_MIN_LEN = 6;
    // 密码最大长度
    public static final int PASSWORD_MAX_LEN = 32;
    public static final String TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE4NjEyOTc3NjMsInVzZXJJZCI6MSwiaWF0IjoxNTYxMjk3NzYzfQ.ISCbAyqxWHw9dPzLQchS73c2MMFU5IxJ6-bKYse02Hs";
    // jwt user key
    public static final String JWT_CLAIM_USER_ID = "userId";
    // json
    public static final String JSON = "application/json";
    public static final char REDIS_REGEX = ':';
    public static final char REDIS_ALL_KEY = '*';
}
